package cn.zhukelili.practice;

/**
 * @Description: 具体的命令
 * @Auther: hongheshou
 * @Date: 2018/7/17 17:25
 */
public class ConcreteCommand1 extends Command {
    //声明自己的默认接收者
    public ConcreteCommand1() {
        super(new ConcreteReciver1());
    }

    //设置新的接收者
    public ConcreteCommand1(Receiver _receiver) {
        super(_receiver);
    }

    //每个具体的命令都必须实现一个命令
    public void execute() {
        //业务处理
        super.receiver.doSomething();
    }
}
